package com.tentact.controller;


import com.tentact.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/tct")
public class ThreeController {
    @RequestMapping(value = "/ar01", method = RequestMethod.POST)
    @ResponseBody
    public String aRequest01(User user){
     System.out.println(user.getUsername());
    System.out.println(user.getAge());
    return "成功";
    };
//    @RequestMapping(value = "/ar02", method = RequestMethod.GET)
//    @ResponseBody
//    public User aRequest02(String uId){
//        System.out.println(uId);;
//       User user = new User();
//       user.setUsername("wangwu");
//       user.setAge(21);
//        System.out.println("user = " + user);
//        return user;
//    }

}
